package com.example.demo.aiInterface;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

/**
 * Java编程助手实现类
 * 继承BaseAssistantImpl基类，实现与Java编程助手相关的特定功能
 */
@Service
public class JavaProgrammingAssistantImpl extends BaseAssistantImpl {

    @Autowired
    private JavaProgrammingAssistant javaProgrammingAssistant;

    /**
     * 获取Java编程助手的响应
     */
    @Override
    protected Flux<String> getAiResponse(String sessionId, String userMessage) {
        return javaProgrammingAssistant.chat(sessionId, userMessage);
    }

    /**
     * 获取助手类型名称
     */
    @Override
    protected String getAssistantTypeName() {
        return "Java编程";
    }
} 